// ml:run = $bin < input
#include <iostream>

using ll = unsigned long long;

int main()
{
    std::ios_base::sync_with_stdio(false);
    ll n, m;
    while (std::cin >> n >> m) {
        ll need;
        if (n & 1) {
            ll tn = n + 1;
            tn /= 2;
            need = tn * (tn - 1);
        } else {
            ll tn = n / 2;
            need = tn * tn;
        }
        if (m >= need) std::cout << "T\n";
        else std::cout << "F\n";
    }
}

